body{
    margin: 0;
    background: #78e08f;
    position: relative;
    height: 100vh;
}
.container{
    width: 232px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font-size: 0;
}
.ball{
    display: inline-block;
    border: 8px solid #000;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    position: relative;
}
.face{
    width: 70px;
    height: 30px;
    position: absolute;
    right: 0;
    top: 30px;
}
.face::before{
    content: '';
    width: 18px;
    height: 8px;
    border-radius: 50%;
    background: #badc58;
    position: absolute;
    right: -8px;
    top: 20px;
}
.face::after{
    content: '';
    width: 18px;
    height: 8px;
    border-radius: 50%;
    background: #badc58;
    position: absolute;
    left: -5px;
    top: 20px;
}
.eye{
    position: absolute;
    width: 15px;
    height: 14px;
    border-bottom: 5px solid #000;
    border-radius: 50%;
}
.l_eye{
    left: 10px;
}
.r_eye{
    right: 5px;
}
.mouth{
    width: 30px;
    height: 14px;
    border-radius: 50%;
    border-bottom: 5px solid #000;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -5px;
}

#l-ball{
    animation: close 4s ease infinite;
    z-index: 5;
}

.l-face{
    animation: face 4s ease infinite;
}

@keyframes close {
    0%{transform: translate(0px);}
    20%{transform: translate(20px);}
    35%{transform: translate(20px);}
    55%{transform: translate(0px);}
    100%{transform: translate(0px);}
}

@keyframes face {
    0%{transform: translate(0) rotate(0);}
    10%{transform:translate(0) rotate(0);}
    20%{transform:translate(5px) rotate(-2deg);}
    28%{transform:translate(0) rotate(0);}
    35%{transform:translate(5px) rotate(-2deg);}
    50%{transform:translate(0) rotate(0);}
    100%{transform:translate(0) rotate(0);}
}

@keyframes newface {
    0%{transform: translate(0) rotate(0);}
    10%{transform:translate(0) rotate(0);}
    20%{transform:translate(0px) rotateY(-10deg);}
    28%{transform:translate(0) rotate(0);}
    35%{transform:translate(0px) rotateY(-10deg);}
    50%{transform:translate(0) rotate(0);}
    100%{transform:translate(0) rotate(0);}
}

.r-face{
    left: 0px;
    top: 37px;
}
.r-face::before{
    content: '';
    width: 10px;
    height: 10px;
    right: -4px;
}
.r-face::after{
    content: '';
    width: 10px;
    height: 10px;
    left: 5px;
}
.eye-r-p{
    transform: rotate(180deg);
}

.kissmouth{
    position: absolute;
    left: 20px;
    top: 22px;
    opacity: 0;
    animation: kiss-m 4s ease infinite;
}
.kiss{
    width: 13px;
    height: 10px;
    border-radius: 50%;
    border-left: 5px solid #000;
}

#r-ball{
    animation: kiss 4s ease infinite;
}

.mouth-r{
    animation:mouth-m 4s ease infinite;
}

@keyframes kiss {
    40%{transform:translate(0);}
    50%{transform:translate(30px) rotate(20deg);}
    60%{transform:translate(-33px);}
    67%{transform:translate(-33px);}
    77%{transform:translate(0px) ;}
}
@keyframes kiss-m {
    0%{opacity: 0;}
    55%{opacity: 0;}
    55.1%{opacity: 1;}
    66%{opacity: 1;}
    66.1%{opacity: 0;}
}
@keyframes mouth-m {
    0%{opacity: 1;}
    55%{opacity: 1;}
    55.1%{opacity: 0;}
    66%{opacity: 0;}
    66.1%{opacity: 1;}
}